﻿<controls:ChildWindow x:Class="LEEAAttendanceControl.Views.CompanyDetails"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="500" Height="350" 
           Title="Company Details">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0" HorizontalAlignment="Center" Margin="5" DataContext="{Binding}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="45"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            
            <sdk:Label Content="ID:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox Width="110" Grid.Column="1" Grid.Row="0" Margin="3" IsEnabled="False" Background="#FFD4E515"
                     Text="{Binding CompanyID}"/>

            <sdk:Label Content="Name:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox Width="110" Grid.Column="1" Grid.Row="1" Margin="3" IsEnabled="False" Text="{Binding CompanyName}"/>

            <sdk:Label Content="Abreviation:" HorizontalAlignment="Left" Grid.Column="3" Grid.Row="1"
                       VerticalAlignment="Center" Margin="3"/>
            <TextBox Width="110" Grid.Column="4" Grid.Row="1" Margin="3" IsEnabled="False" Text="{Binding Abr}"/>

            <sdk:Label Content="Address 1:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="2"
                       VerticalAlignment="Center" Margin="3,15,3,3"/>
            <TextBox Width="110" Grid.Column="1" Grid.Row="2" Margin="3,15,3,3" IsEnabled="False"
                     Text="{Binding Adr1}"/>

            <sdk:Label Content="Address 2:" HorizontalAlignment="Left" Grid.Column="3" Grid.Row="2"
                       VerticalAlignment="Center" Margin="3,15,3,3"/>
            <TextBox Width="110" Grid.Column="4" Grid.Row="2" Margin="3,15,3,3" IsEnabled="False" Text="{Binding Adr2}"/>

            <sdk:Label Content="Region:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox Width="110" Grid.Column="1" Grid.Row="3" Margin="3" IsEnabled="False" Text="{Binding Region}"/>

            <sdk:Label Content="City:" HorizontalAlignment="Left" Grid.Column="3" Grid.Row="3"
                       VerticalAlignment="Center" Margin="3"/>
            <TextBox Width="110" Grid.Column="4" Grid.Row="3" Margin="3" IsEnabled="False" Text="{Binding City}"/>

            <sdk:Label Content="State:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="4" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox Width="110" Grid.Column="1" Grid.Row="4" Margin="3" IsEnabled="False" Text="{Binding State}"/>

            <sdk:Label Content="Country:" HorizontalAlignment="Left" Grid.Column="3" Grid.Row="4"
                       VerticalAlignment="Center" Margin="3"/>
            <TextBox Width="110" Grid.Column="4" Grid.Row="4" Margin="3" IsEnabled="False" Text="{Binding Country}"/>
            
            <sdk:Label Content="Description:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="5"
                       VerticalAlignment="Top" Margin="3,20,3,3"/>
            <TextBox Grid.Column="1" Grid.ColumnSpan="4" Grid.Row="5" IsEnabled="False" Margin="3,20,3,3" Height="70"
                     AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Text="{Binding Description}"/>
        </Grid>

        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right"
                Grid.Row="1" Margin="0,0,22,0"/>
    </Grid>
</controls:ChildWindow>